//
//  UploadController.h
//  ObjectiveYouTube
//
//  Created by Tristan O'Tierney on 1/11/08.
//  Copyright 2008 Tristan O'Tierney. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import <ObjectiveYouTube/ObjectiveYouTube.h>

typedef enum {
	LoginStateLoggedOut,
	LoginStateProcessing,
	LoginStateLoggedIn
} LoginState;

@interface UploadController : NSObject {
	IBOutlet NSTextField *userNameField;
	IBOutlet NSSecureTextField *passwordField;
	IBOutlet NSProgressIndicator *loginProgress;
	IBOutlet NSTextField *filePathField;
	IBOutlet NSTextField *titleField;
	IBOutlet NSTextField *descriptionField;
	IBOutlet NSTokenField *tagsField;
	IBOutlet NSPopUpButton *categoryPopUp;
	IBOutlet NSProgressIndicator *categoryProgress;
	IBOutlet NSButton *privacyButton;
	IBOutlet NSButton *uploadButton;
	IBOutlet NSButton *loginButton;
	IBOutlet NSButton *browseButton;
	IBOutlet NSProgressIndicator *uploadProgress;
	IBOutlet NSWindow *window;
	
	OYUploader *_uploader;
	OYAuthenticator *_authenticator;
	OYCategoriesController *_categories;
	LoginState _loginState;
}

- (IBAction)loginPressed:(id)sender;
- (IBAction)browsePressed:(id)sender;
- (IBAction)uploadPressed:(id)sender;
@end
